package application;

public class Coordinate {
	private int _x;
	private int _y;
	
	public Coordinate(int x, int y) {
		this._x = x;
		this._y = y;
	}
	public Coordinate() {
		this.set_x(0);
		this.set_y(0);
	}
	@Override
	public Coordinate clone(){
		Coordinate ans = new Coordinate(this.get_x(),this.get_y());
		return ans;
	}
	public void decX(){
		this.set_x(get_x()-1);
	}
	
	public void decY(){
		this.set_y(get_y()-1);
	}

	public int get_x() {
		return _x;
	}

	public void set_x(int _x) {
		this._x = _x;
	}

	public int get_y() {
		return _y;
	}

	public void set_y(int _y) {
		this._y = _y;
	}
	public void incX() {
		this.set_x(this.get_x()+1);
	}
	public void incY() {
		this.set_y(this.get_y()+1);
		
	}
	
}
